//
//  DynamicCast.cpp
//  learnC++
//
//  Created by liuzhibing on 2018/6/19.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#include "DynamicCast.hpp"
Base12* getObject(bool bReturnDerived)
{
    if (bReturnDerived)
        return new Derived12(1, "Apple");
    else
        return new Base12(2);
}
